/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.squirrelm.my.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.squirrelm.my.dao.MyDao;
import org.squirrelm.my.domain.My;
import org.squirrelm.my.service.MyService;

/**
 *
 * @author 松鼠M
 */
@Service
public class MyServiceImpl implements MyService {

    @Autowired
    private MyDao   myDao;

    public void create(My my) {
        myDao.create(my);
    }

    public My get(Long myID) {
        return myDao.get(myID);
    }

}
